Parent.prototype.getName=function(){
    return this.name

}
function Parent() {
    this.name = 'parent'
    this.like=['a','b','c']
}

function Child() {
    this.age=18
    Parent.call(this)//将Parent内的this指向Child里面的this
}
// 寄生组合继承
Child.prototype=Object.create(Parent.prototype)
Child.prototype.constructor=Child//修复指向



